package indi.h.filefilter.anaysis;

import java.io.File;

import indi.h.filefilter.filters.Filter;
import indi.h.filefilter.lists.NRPArrayList.CheckField;

public interface Anaysis {

	public void setFilter(Filter f);

	public Filter.FilterR anaysis(File f);

	public class FileMessage {
		private Enum title;
		private StringBuffer message;

		public FileMessage() {
			this(null);
		}

		public FileMessage(Enum title) {
			super();
			this.title = title;
			this.message = new StringBuffer("");
		}

		public FileMessage(Enum title, StringBuffer message) {
			super();
			this.title = title;
			this.message = message;
		}

		public Enum getTitle() {
			return title;
		}

		public void setTitle(Enum title) {
			this.title = title;
		}

		public Anaysis.FileMessage setMessage(String s) {
			this.message.append(s);
			return this;
		}

		public String getMessage() {
			return this.message.toString();
		}

		public void reMessage(int start, int end) {
			this.message.delete(start, end);
		}

		public void rsMessage() {
			this.message.delete(0, this.message.length());
		}

		public void rpMessage(int start, int end, String str) {
			this.message.replace(start, end, str);
		}
	}
}
